<template>
	<view class="item-box" @click="click()">
		<view class="item">
			<image :src="info.url"></image>
			<view class="item-name">
				{{info.name}}
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		name:"cloud-host-item",
		props:['info'],
		data() {
			return {
				
			};
		},
			
		methods:{
			click(){
				console.log(this.info.url)
				console.log(this.$data.itemInfo)
			}
		}
	}
</script>

<style>
.item-box{
/* border:2rpx solid black; */
	display: flex;
	  justify-content: center;
	  align-items: center; 
}
.item{

	height: 150rpx;
	width: 75%;
	/* border: 2rpx solid black; */
	
	

}
.item-name{
	margin-top: 10rpx;
}
.item image{
	height: 40%;
	width: 40%;
	/* margin-left: 60rpx; */
	margin-top: 10%;
}
</style>